package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbGoodsDescMapper;
import com.dongdongshop.pojo.goods.TbGoodsDesc;
import com.dongdongshop.service.GoodsDescServiceI;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Service
public class GoodsDescServiceImpl implements GoodsDescServiceI {

    @Resource
    private TbGoodsDescMapper goodsDescMapper;

    @Override
    public TbGoodsDesc getGoodsId(Long goodsId) {
        return goodsDescMapper.selectByPrimaryKey(goodsId);
    }
}
